<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>个人中心 - Game Hub</title>
    <link rel="stylesheet" href="assets/css/main.css">
    <link rel="stylesheet" href="assets/css/profile.css">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap" rel="stylesheet">
</head>
<body>
    <header class="header">
        <nav class="nav-container">
            <div class="nav-left">
                <div class="logo">
                    <span class="logo-text">Game Hub</span>
                </div>
                <div class="nav-links">
                    <a href="index.html">首页</a>
                    <a href="leaderboard.html">排行榜</a>
                    <a href="#">新品推荐</a>
                    <a href="#">收藏夹</a>
                </div>
            </div>
            <div class="nav-right">
                <div class="search-container">
                    <input type="text" placeholder="搜索游戏...">
                    <button class="search-btn">
                        <svg width="20" height="20" viewBox="0 0 24 24" fill="none">
                            <path d="M21 21L16.5 16.5M19 11C19 15.4183 15.4183 19 11 19C6.58172 19 3 15.4183 3 11C3 6.58172 6.58172 3 11 3C15.4183 3 19 6.58172 19 11Z" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
                        </svg>
                    </button>
                </div>
                <button class="user-btn">
                    <svg width="24" height="24" viewBox="0 0 24 24" fill="none">
                        <path d="M12 12C14.2091 12 16 10.2091 16 8C16 5.79086 14.2091 4 12 4C9.79086 4 8 5.79086 8 8C8 10.2091 9.79086 12 12 12Z" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
                        <path d="M20 21C20 18.2386 16.4183 16 12 16C7.58172 16 4 18.2386 4 21" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
                    </svg>
                </button>
            </div>
        </nav>
    </header>

    <main class="profile-page">
        <div class="profile-container">
            <section class="profile-header">
                <div class="profile-avatar">
                    <img src="https://avatars.dicebear.com/api/adventurer/game-hub-user.svg" alt="用户头像">
                </div>
                <div class="profile-info">
                    <h1 class="username">游戏玩家</h1>
                    <p class="user-bio">热爱游戏，追求极致体验</p>
                    <div class="user-stats">
                        <div class="stat-item">
                            <span class="stat-value">128</span>
                            <span class="stat-label">总游戏时长</span>
                        </div>
                        <div class="stat-item">
                            <span class="stat-value">24</span>
                            <span class="stat-label">已完成游戏</span>
                        </div>
                        <div class="stat-item">
                            <span class="stat-value">6</span>
                            <span class="stat-label">成就徽章</span>
                        </div>
                    </div>
                </div>
            </section>

            <div class="profile-content">
                <section class="recent-games">
                    <h2 class="section-title">最近游戏</h2>
                    <div class="games-grid">
                        <div class="game-card">
                            <img src="https://via.placeholder.com/150" alt="游戏封面">
                            <div class="game-info">
                                <h3>贪吃蛇</h3>
                                <p>最近游戏：2小时前</p>
                            </div>
                        </div>
                        <div class="game-card">
                            <img src="https://via.placeholder.com/150" alt="游戏封面">
                            <div class="game-info">
                                <h3>俄罗斯方块</h3>
                                <p>最近游戏：1天前</p>
                            </div>
                        </div>
                        <div class="game-card">
                            <img src="https://via.placeholder.com/150" alt="游戏封面">
                            <div class="game-info">
                                <h3>2048</h3>
                                <p>最近游戏：3天前</p>
                            </div>
                        </div>
                    </div>
                </section>

                <section class="achievements">
                    <h2 class="section-title">成就墙</h2>
                    <div class="achievements-grid">
                        <div class="achievement-item">
                            <div class="achievement-icon">🏆</div>
                            <div class="achievement-info">
                                <h3>游戏新手</h3>
                                <p>完成首个游戏</p>
                            </div>
                        </div>
                        <div class="achievement-item">
                            <div class="achievement-icon">🎮</div>
                            <div class="achievement-info">
                                <h3>游戏达人</h3>
                                <p>累计游戏100小时</p>
                            </div>
                        </div>
                        <div class="achievement-item">
                            <div class="achievement-icon">🌟</div>
                            <div class="achievement-info">
                                <h3>收藏家</h3>
                                <p>收藏10款游戏</p>
                            </div>
                        </div>
                    </div>
                </section>
            </div>
        </div>
    </main>

    <footer class="footer">
        <div class="footer-content">
            <div class="footer-top">
                <div class="footer-brand">
                    <h3>Game Hub</h3>
                    <p>发现快乐，享受游戏</p>
                </div>
                <div class="footer-links">
                    <div class="footer-column">
                        <h4>关于我们</h4>
                        <a href="#">公司介绍</a>
                        <a href="#">加入我们</a>
                        <a href="#">联系方式</a>
                    </div>
                    <div class="footer-column">
                        <h4>帮助支持</h4>
                        <a href="#">常见问题</a>
                        <a href="#">用户指南</a>
                        <a href="#">意见反馈</a>
                    </div>
                    <div class="footer-column">
                        <h4>关注我们</h4>
                        <div class="social-links">
                            <a href="#" class="social-link">微信</a>
                            <a href="#" class="social-link">微博</a>
                            <a href="#" class="social-link">抖音</a>
                        </div>
                    </div>
                </div>
            </div>
            <div class="footer-bottom">
                <p>&copy; 2024 Game Hub. All rights reserved.</p>
                <div class="footer-legal">
                    <a href="#">隐私政策</a>
                    <a href="#">用户协议</a>
                    <a href="#">免责声明</a>
                </div>
            </div>
        </div>
    </footer>

    <script src="assets/js/profile.js"></script>
</body>
</html>
